package com.excel.apiProvider;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.baseBean.User;
import com.dubbo.ExcelInterface.UserService;
import com.dubbo.sqlService.AddressService;
import org.springframework.stereotype.Component;

@Component
@Service
public class UserServiceApiImpl implements UserService {
//    @Reference
//    private AddressService addressService;

    @Override
    public User getUser(Integer id) {
        User user = new User();
//        Integer address = addressService.getAddress(user);
        user.setId(id);
        System.out.println(id);
        return user;
    }
}
